﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="XMLClassGeneratorSchema" 
           targetNamespace="http://microsoft.com/XMLClassGeneratorSchema.xsd" 
           elementFormDefault="qualified" 
           xmlns="http://microsoft.com/XMLClassGeneratorSchema.xsd" 
           xmlns:mstns="http://microsoft.com/XMLClassGeneratorSchema.xsd" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Types">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="RuleSetClass">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RuleSet">
                <xs:complexType>
                  <xs:choice maxOccurs="unbounded">
                    <xs:element name="Rule">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="data" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute name="key" use="required" type="xs:string" />
                              <xs:attribute name="value" type="xs:string" />
                              <xs:attribute name="datatype" type="xs:string" />
                              <xs:attribute name="operator" type="xs:string"/>
                              <xs:attribute name="direction" type="xs:string"/>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="ID" use="required" type="xs:string" />
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
              </xs:element>

            </xs:sequence>
            <xs:attribute name="name" use="required" type="xs:string" />

          </xs:complexType>
        </xs:element>
      </xs:choice>
      <!--<xs:attribute name="name" use="required" type="xs:string" />-->
    </xs:complexType>
  </xs:element>
</xs:schema>